#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
vector<int> v;
int main()
{
    int a1, a2, n;
    cin >> a1 >> a2 >> n;
    v.emplace_back(a1);
    v.emplace_back(a2);
    for (int i = 0; i <= n && v.size() < n; i++)
    {
        int x = v[i] * v[i + 1];
        if (x >= 10)
        {
            v.push_back(x / 10);
            v.push_back(x % 10);
        }
        else v.emplace_back(x);
    }
    for (int i = 0; i < n - 1; i++)
    {
        cout << v[i] << " ";
    }
    cout << v[n - 1];
    return 0;
}